import {fromJS} from "immutable";

const reducer = (preState= {cinemaList: []}, action) => {
    const newState = fromJS(preState);
    if (action.type === "queryCinemaList") {
        return newState.set("cinemaList", action.payload).toJS();
    }
    return preState;
}

export default reducer;